﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Lecturers/Lecturers.Master"
    Inherits="System.Web.Mvc.ViewPage<IEnumerable<Diploma.Models.CollaborationRoom>>" %>

<%@ Import Namespace="ViewRes" %>
<asp:Content ID="ScriptsContent" ContentPlaceHolderID="ScriptsContent" runat="server">
    <script type="text/javascript">
        function getProposes(link) {
            $("#divDialog").remove();
            $("body").append("<div id='divDialog'></div>");
            $("#divAccordion").remove();
            $(function () {
                var divDialog;
                $("#divDialog").dialog({
                    modal: true,
                    open: function (event, ui) {
                        $(this).load(link, function () {
                            $("#divAccordion").accordion({ header: "h3" });
                            $(event.target).dialog('option', 'position', 'center');
                        });
                    },
                    height: 'auto',
                    width: 'auto',
                    title: '<%:LecturerStrings.StudentProposals%>'
                });
            });

            return false;
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <span class="titletext">
        <%:LecturerStrings.MyThemes%></span>
    <div class="addlink">
        <%:Html.RouteLink(SharedStrings.Add, "Default",
                                             new {controller = "CollaborationRooms", action = "Add"})%></div>
    <div style="margin: 1em auto; position: relative; text-align: left; width: 763px;
        z-index: 1;">
        <ol style="list-style: none outside none;">
            <%
                foreach (CollaborationRoom room in Model)
                {%>
            <%
                    Html.RenderPartial("~/Views/CollaborationRooms/LecturerViewThemeControl.ascx", room, ViewData);%>
            <%
                }%>
        </ol>
    </div>
</asp:Content>
